<template>
  <el-tree :data="data" :props="defaultProps" @node-click="nodeClick" accordion></el-tree>
</template>

<script>
export default {
    data() {
      return {
        data: [{
          label: 'vip会员',
        }, {
          label: '普通用户',
        }],
        defaultProps: {
          children: 'children',
          label: 'label'
        }
      };
    },
    methods: {
      nodeClick(data){
        this.$bus.emit('sendTreeData',data)
      }
    }
}
</script>

<style>

</style>